import request from '@utils/request'
import qs from 'qs'
// 请求 所有分类接口
const fetchCates = (params = {}) => request.get('/shop/goods/category/all', { params })
// 请求首页banners
const slideShow = (params = {}) => request.get('/banner/list', { params })
// 请求商品列表                                                     //qs.stringify(params)
const RequestList = (params = {}) => request.post('/shop/goods/list', qs.stringify(params))
// 请求商品详情
const fetchXQ = (id) => request.get('/shop/goods/detail', { params: { id } })
export {
  fetchCates,
  slideShow,
  RequestList,
  fetchXQ
}
